package org.grottarossa.ui.core.casemanagement.contents;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.vaadin.terminal.StreamResource;

public class DocumentStreamResource implements StreamResource.StreamSource{

	/**
	 *
	 */
	private static final long serialVersionUID = -2129149124716353857L;


	private byte[] fileEssence =null;


	public DocumentStreamResource(byte[] fileEssence)
	{
		this.fileEssence = fileEssence;
	}

	public InputStream getStream()
	{

		return new ByteArrayInputStream(fileEssence);
	}

}
